﻿//     Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using Microsoft.Gateway.Configuration;

namespace Microsoft.Gateway.RulesConfigurator.ConfigComparitors
{
    class AuthNComparitor : IEqualityComparer<RulesConfiguration>
    {
        public bool Equals(RulesConfiguration lhs, RulesConfiguration rhs)
        {
            return lhs != null && rhs != null &&
                lhs.SafeEquals(rhs, (x, y) =>
                    String.Equals(lhs.Directory, rhs.Directory, StringComparison.OrdinalIgnoreCase) &&
                    String.Equals(lhs.ApplicationName, rhs.ApplicationName, StringComparison.OrdinalIgnoreCase));
        }

        public int GetHashCode(RulesConfiguration obj)
        {
            throw new NotImplementedException();
        }
    }
}
